package com.moralesce.gt.util;

import java.util.Collections;
import java.util.List;

import com.moralesce.gt.model.Hand;
import com.moralesce.gt.model.HandType;

public class HandProbabilityProfile implements Comparable<HandProbabilityProfile> {

	private final HandType handType;
	private final Double probability;
	private final List<Hand> hands;

	public HandProbabilityProfile(HandType handType, Double probability, List<Hand> hands) {
		this.handType = handType;
		this.probability = probability;
		this.hands = hands;
	}

	public HandType getHandType() {
		return handType;
	}

	public Double getProbability() {
		return probability;
	}

	public List<Hand> getHands() {
		return Collections.unmodifiableList(hands);
	}

	public int compareTo(HandProbabilityProfile handProbabilityProfile) {
		return this.handType.compareTo(handProbabilityProfile.getHandType());
	}

}
